﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Utility.Persistence_Service
{
    public interface Repository<T>
    {
        T FindById(object id);

        T Create(T value);

        T Update(T value);

        T CreateOrUpdate(T value);

        void Delete(T value);

        IList<T> FindAll();
    }
}
